import React from "react";
const  FormError = function (props:any) {
    const errors = props.errors;
   
    return <>{errors?<div style={{ textAlign: "left", fontSize: `12px`,
    color: `#FF6767`,
    letterSpacing: 0,
    fontWeight: 400,paddingTop:`8px` }}>{errors[0].message}</div>:null}</>
};


export function formverfiyRequired(rules:any) {
    if (rules === void 0) { rules = []; }
    return rules.some(function (item:any) { return item.required; });
}
export default FormError;